import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '活动名称',
    align: "center",
    dataIndex: 'activityName'
  },
  {
    title: '活动图片',
    align: "center",
    dataIndex: 'activityImage',
    customRender: render.renderImage,
  },
  {
    title: '首页显示',
    align: "center",
    dataIndex: 'showHome_dictText'
  },
  {
    title: '活动开始时间',
    align: "center",
    dataIndex: 'startTime'
  },
  {
    title: '活动结束时间',
    align: "center",
    dataIndex: 'endTime'
  },
  {
    title: '活动商场',
    align: "center",
    dataIndex: 'mail_dictText'
  },
  {
    title: '活动状态',
    align: "center",
    dataIndex: 'activityStatus_dictText'
  },
  {
    title: '排序',
    align: "center",
    dataIndex: 'sortNo'
  },
];

// 高级查询数据
export const superQuerySchema = {
  activityName: {title: '活动名称',order: 0,view: 'text', type: 'string',},
  activityImage: {title: '活动图片',order: 1,view: 'image', type: 'string',},
  showHome: {title: '首页显示',order: 2,view: 'list', type: 'string',dictCode: 'show_home',},
  startTime: {title: '活动开始时间',order: 3,view: 'datetime', type: 'string',},
  endTime: {title: '活动结束时间',order: 4,view: 'datetime', type: 'string',},
  mail: {title: '活动商场',order: 6,view: 'sel_user', type: 'string',},
  activityStatus: {title: '活动状态',order: 7,view: 'list', type: 'string',},
  sortNo: {title: '排序',order: 8,view: 'number', type: 'number',},
};
